import request from '@/utils/request'

// 查询人才总览列表
export function listTalent(query) {
  return request({
    url: '/system/talent/list',
    method: 'get',
    params: query
  })
}

// 查询人才总览详细
export function getTalent(id) {
  return request({
    url: '/system/talent/' + id,
    method: 'get'
  })
}

// 新增人才总览
export function addTalent(data) {
  return request({
    url: '/system/talent',
    method: 'post',
    data: data
  })
}

// 修改人才总览
export function updateTalent(data) {
  return request({
    url: '/system/talent',
    method: 'put',
    data: data
  })
}

// 删除人才总览
export function delTalent(id) {
  return request({
    url: '/system/talent/' + id,
    method: 'delete'
  })
}
